package com.team11.server.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "获取上课记录列表",description = "获取上课记录列表")
public class SkRecord {

    @ApiModelProperty(value = "班级学生id")
    @TableField("kc_s_id")
    private Integer kcSId;


    @ApiModelProperty(value = "签到时间")
    @TableField("kc_in_time")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalTime kcInTime;

    @ApiModelProperty(value = "签退时间")
    @TableField("kc_out_time")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalTime kcOutTime;

    @ApiModelProperty(value = "教室")
    @TableField("kc_classroom")
    private String kcClassroom;

    @ApiModelProperty(value = "备注")
    @TableField("kc_remarks")
    private String kcRemarks;

    @ApiModelProperty(value = "日期")
    @TableField("kc_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate kcDate;

    @ApiModelProperty(value = "项目名称")
    @TableField("kc_name")
    private String kcName;

    @ApiModelProperty(value = "实训老师")
    @TableField(exist = false)
    private String sxTeacher;

    @ApiModelProperty(value = "责任老师")
    @TableField("t_name")
    private String zrTeacher;

}
